package com.sl.plugin.step.manytoone;

import cn.hutool.core.collection.CollUtil;
import com.sl.core.engine.meta.impl.AbstractProcessCompDescriptor;
import com.sl.core.engine.step.ProcessCompService;
import com.sl.core.engine.step.impl.AbstractProcessComp;

import java.util.List;
import java.util.Map;

/**
 */
//@Compensation(listener = NormalRowListener.class, type = CompensationType.SERVICE_COMPENSATION)
public class ManyToOneComp extends AbstractProcessComp<List<Object>, Object> implements ProcessCompService {

    public ManyToOneComp(AbstractProcessCompDescriptor abstractProcessCompDescriptor) {
        super(abstractProcessCompDescriptor);
    }


    @Override
    public Object input(List<Object> param) {
        return CollUtil.get(param,0);
    }


}
